<?php
    session_start();
    if (!isset($_SESSION['usuario'])) {
        header('location:../html/login.html');
    }
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="jquery-1.9.1.min.js"></script>
        <script>
        
            idleTime = 0;
            $(document).ready(function () {
                //Increment the idle time counter every minute.
                var idleInterval = setInterval("timerIncrement()", 900000); // 5 minutes

                $(this).mousemove(function (e) {                //Zero the idle timer on mouse movement.

                    idleTime = 0;
                    
                });
                $(this).keypress(function (e) {
                    idleTime = 0;
                });
            })

            function timerIncrement() {
                idleTime = idleTime + 1;
                if (idleTime > 0) { // 20 minutes
                    //alert("su tiempo de sesion a caducado");
                    //document.location = ('../../controlador/php/sql/cerrarSesion.php');
                    document.location.reload();
                }
            }
        
        </script>
    </head>
    <body>
        <?php echo$_SESSION['usuario']."-".$_SESSION['nombres'] ?>
    </body>
</html>

<html>


<head>


<title>Prueba CSS</title>


<style type="text/css">





table {


border: 1px solid red;


width: 20%;


}





</style>


</head>


<body>


<table>


<tr>


<td>


<a class="enlace" href="#">enlace 1</a>


</td>


</tr>


<tr>


<td>


<a class="enlace" href="#">enlace 2</a>

</td>

</table>

</body>